﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
using Lists;
using GeneralLibs;

namespace Vouchers
{
    public partial class ChungTu
    {
        private void GhiSoButToanPhieuBuTruCongNo(SqlCommand cmd)
        {
            if (!this.DinhKhoan) return;
            foreach (KhoanMucChungTu khoanMuc in _DanhSachKhoanMuc)
            {
                if (DinhKhoan)
                {
                    //but toan thuong
                    ButToan.InsertToDB(cmd, this.Ngay, this.ChungTuID, khoanMuc.KhoanMucChungTuID, this.DoiTuongNghiepVu1ID, this.DoiTuongNghiepVu2ID,
                                        khoanMuc.TaiKhoan1ID, khoanMuc.TaiKhoan2ID, this.TienTeID, this.TyGiaThucTe, khoanMuc.Value2,
                                        this.DienGiai, khoanMuc.VuViec1ID, khoanMuc.YeuToChiPhi1ID);
                }
            }
        }

        public bool PrintChungTuPhieuBuTruCongNo()
        {
            return PrintChungTuPhieuKeToan();
        }
    }
}
